package thread;

import sun.management.snmp.jvmmib.JVM_MANAGEMENT_MIBOidTable;

public class CurrentThreadDemo {
    public static void main(String[] args) {
        Thread main=new Thread();
        System.out.println(main);
        dosome();
        Thread t = new Thread(){
            public void run()
            {
                Thread t = Thread.currentThread();
                System.out.println(t);
                dosome();
            }
        };
    }
    public static void dosome()
    {
        Thread t1=Thread.currentThread();
        System.out.println(t1);

    }
}

